package com.ruoyi.project.oms.paeaAuOperAuditor.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.oms.paeaAuOperAuditor.mapper.PaeaAuOperAuditorMapper;
import com.ruoyi.project.oms.paeaAuOperAuditor.domain.PaeaAuOperAuditor;
import com.ruoyi.project.oms.paeaAuOperAuditor.service.IPaeaAuOperAuditorService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 质检流水下发差错统计Service业务层处理
 *
 * @author px
 * @date 2020-04-18
 */
@Service
public class PaeaAuOperAuditorServiceImpl extends ServiceImpl<PaeaAuOperAuditorMapper, PaeaAuOperAuditor> implements IPaeaAuOperAuditorService
{
    @Autowired
    private PaeaAuOperAuditorMapper paeaAuOperAuditorMapper;

    /**
     * 查询质检流水下发差错统计
     *
     * @param id 质检流水下发差错统计ID
     * @return 质检流水下发差错统计
     */
    @Override
    public PaeaAuOperAuditor selectPaeaAuOperAuditorById(String id)
    {
        return paeaAuOperAuditorMapper.selectPaeaAuOperAuditorById(id);
    }

    /**
     * 查询质检流水下发差错统计列表
     *
     * @param paeaAuOperAuditor 质检流水下发差错统计
     * @return 质检流水下发差错统计
     */
    @Override
    public List<PaeaAuOperAuditor> selectPaeaAuOperAuditorList(PaeaAuOperAuditor paeaAuOperAuditor)
    {
        return paeaAuOperAuditorMapper.selectPaeaAuOperAuditorList(paeaAuOperAuditor);
    }

    /**
     * 新增质检流水下发差错统计
     *
     * @param paeaAuOperAuditor 质检流水下发差错统计
     * @return 结果
     */
    @Override
    public int insertPaeaAuOperAuditor(PaeaAuOperAuditor paeaAuOperAuditor)
    {
        return paeaAuOperAuditorMapper.insertPaeaAuOperAuditor(paeaAuOperAuditor);
    }

    /**
     * 修改质检流水下发差错统计
     *
     * @param paeaAuOperAuditor 质检流水下发差错统计
     * @return 结果
     */
    @Override
    public int updatePaeaAuOperAuditor(PaeaAuOperAuditor paeaAuOperAuditor)
    {
        return paeaAuOperAuditorMapper.updatePaeaAuOperAuditor(paeaAuOperAuditor);
    }

    /**
     * 删除质检流水下发差错统计对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaAuOperAuditorByIds(String ids)
    {
        return paeaAuOperAuditorMapper.deletePaeaAuOperAuditorByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除质检流水下发差错统计信息
     *
     * @param id 质检流水下发差错统计ID
     * @return 结果
     */
    @Override
    public int deletePaeaAuOperAuditorById(String id)
    {
        return paeaAuOperAuditorMapper.deletePaeaAuOperAuditorById(id);
    }
}
